package cn.fighter3.service.relationship;

import cn.fighter3.entity.relationship.Authorof6;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;

public interface Authorof6Dao extends Neo4jRepository<Authorof6,Long> {
    @Query("match (n:Perbook),(m:People) where n.bookId=$fromId and m.authorId=$toId match (n)-[r:Authorof]->(m) delete r")
    void deleteByNodeId(String fromId,String toId);
}
